//
//  NavViewController.m
//  musicPlayer
//
//  Created by 遇水 on 15/6/18.
//  Copyright (c) 2015年 YS. All rights reserved.
//

#import "NavViewController.h"
#import "Colours.h"
@interface NavViewController ()

@end

@implementation NavViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

+ (void)initialize
{
   //设置navi的背景色
    UINavigationBar *bar = [UINavigationBar appearance];
    [bar setBackgroundColor:[UIColor colorFromHexString:@"#8c77bb"]];
    [bar setBackgroundColor:[UIColor clearColor]];
    
    [bar setBackgroundImage:[UIImage imageNamed:@"nav_bg"] forBarMetrics:UIBarMetricsDefault];
    
}

@end
